package com.xx.config;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Component
public class LoginInterceptor implements HandlerInterceptor {

	/**
	 * 拦截处理
	 */
	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//		Object sysUser = request.getSession().getAttribute("sysUser");
//		if (null == sysUser) {
//			response.sendRedirect("/login");
//		}
		return true;
	}

}